Well, isn't this fun? The newly added Garmin format overlows an internal
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 13 Apr 2014 03:37:55 +0000 (03:37 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 13 Apr 2014 03:37:55 +0000 (03:37 +0000)
hardcoded buffer when we format our help options, such as we do when
we make doc...like one does when trying to make a release.  Argh!

gpsbabel/xcsv.cc

index b1d9e84cbfa5b0bc0f01f94d02ee539e66f171d8..88cf49ea5b16f638a0c5ff56bccbafbfca675352 100644 (file)
@@ -515,7 +515,9 @@ xcsv_parse_style_line(char* sbuff)
 static void
 xcsv_parse_style_buff(const char* sbuff)
 {
-  char ibuf[256];
+  // FIXME: should not be a static buf.  Should not be a raw character
+  // buffer at all!
+  char ibuf[4096];
   char* ibufp;
   size_t i;